You cannot use control statements. You cannot put an assignment operator in a boolean expression. Syntax error (unknown table/field name ?). Do you really mean to put a comment here ?! A right string delimiter is missing. A left string delimiter is missing. A right parenthesis is missing. A left parenthesis is missing. A right brace is missing. A left brace is missing.